package com.itSession.cn.entity;

import io.swagger.annotations.ApiModelProperty;

/**
 * @ClassName: NewsInfo
 * @author: hanP
 * @create: 2023-04-06 13:12:49
 */
public class NewsInfo {
	private Integer newsId;
	/** 标题 */
    @ApiModelProperty(value = "标题")
	private String newsTitle;
	/** 资讯图片 */
    @ApiModelProperty(value = "资讯图片")
	private String newsImg;

	public void setNewsId(Integer newsId) {
		this.newsId = newsId;
	}
	
	public Integer getNewsId() {
		return this.newsId;
	}
	
	public void setNewsTitle(String newsTitle) {
		this.newsTitle = newsTitle;
	}
	
	public String getNewsTitle() {
		return this.newsTitle;
	}
	
	public void setNewsImg(String newsImg) {
		this.newsImg = newsImg;
	}
	
	public String getNewsImg() {
		return this.newsImg;
	}
	

	@Override
    public boolean equals(Object o) {
        if (this == o) { return true; }
        if (o == null || getClass() != o.getClass()) {return false;}
        NewsInfo that = (NewsInfo) o;
        return newsId.equals(that.newsId);
    }

    @Override
    public int hashCode() {
        return java.util.Objects.hash(newsId);
    }
    
    @Override
    public String toString() {
        return "NewsInfo{" +
				"newsId=" + newsId +
						",newsTitle='" + newsTitle + "'" + 
						",newsImg='" + newsImg + "'" + 
		                '}';
    }
	
}